package com.czwj;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import com.czwj.socket.OilPressureSocket;


@Component
public class Socket {
	@Value("${socket.pressure.port}")
	private Integer p_port;
	
	public void start(){
		OilPressureSocket oil = new OilPressureSocket(p_port);
		Thread thread1 = new Thread(oil);
		thread1.start();
	}
}
